package com.yanqu.road.entity.activity.suitang.enums;

public enum eSuiTangCityType {
    CITY_TYPE_HOME(1, "根据地"),
    CITY_TYPE_ZHOUFU(2, "州府"),
    CITY_TYPE_GUANCHENG(3, "关城"),
    CITY_TYPE_XIANCHENG(4, "县城"),
    CITY_TYPE_CENTER(5, "中心城"),
    CITY_TYPE_YINSHAN(6, "阴山"),
    ;


    /**
     * 类型
     */
    private int type;

    /**
     * 名称
     */
    private String name;

    eSuiTangCityType(int type, String name) {
        this.type = type;
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public static eSuiTangCityType forValue(int type) {
        for (eSuiTangCityType cityTypeEnum : values()) {
            if (cityTypeEnum.getType() == type) {
                return cityTypeEnum;
            }
        }
        return null;
    }
}
